package com.mrkun.vueshop.controller;

import com.mrkun.vueshop.DTO.RouterDTO;
import com.mrkun.vueshop.mapper.UserMapper;
import com.mrkun.vueshop.model.User;
import com.mrkun.vueshop.service.RouterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author by yong
 * @date 2020/3/15
 */

@RestController
public class RouterController {
    @Autowired
    private RouterService routerService;

    @GetMapping("/menuList")
    public List<RouterDTO> getMenuList(){
        return routerService.getMenuTreeList();
    }

}
